<?php
!defined("EW_ROOT") && exit('No direct script access allowed');
/**
* Ecommerce Web Content Management System
* @copyright (c) 2011 ewcms team http://www.ewcms.org
* @license  GNU GENERAL PUBLIC LICENSE (GPLv3)
* @author iceweb
*/
define("WWW_PATH", substr($_SERVER['PHP_SELF'],1,stripos($_SERVER['PHP_SELF'],"index.php")));
/**
 * 定义语言包路径
 */
define("LANG_PATH",EW_ROOT.APP_PATH.'/language/');
/**
 * 定义模型路径
 */
define("MODEL_PATH", EW_ROOT.APP_PATH.'/model/');
/**
 * 定义视图路径
 */
define("VIEW_PATH", EW_ROOT.APP_PATH.'/view/');
/**
 * 定义日志路径
 */
define("LOG_PATH", EW_ROOT.APP_PATH.'/log/');
/**
 * 定义缓存路径
 */
define("CACHE_PATH",EW_ROOT.APP_PATH.'/cache/');
/**
 * 类库路径
 */
define("LIB_PATH", EW_ROOT.APP_PATH.'/libraries/');
/**
 * 定义插件的路径
 */
define("PLUG_PATH", EW_ROOT.APP_PATH.'/plugin/');
/**
 * 定义文件上传路径
 */
define("UPLOAD_PATH",EW_ROOT.'static/upload/');
/**
 * 载入数据库信息
 */
require EW_ROOT.APP_PATH.'/config/dbConfig.php';
/**
 * 载入基本配置信息
 */
require EW_ROOT.APP_PATH.'/config/baseConfig.php';

